<include file="Public/header"/>
<include file="Public/menu"/>
<div class="page-content">
	<div class="page-header">
		<h1>
			角色管理
			<small>
				<i class="icon-double-angle-right"></i>
				角色列表
			</small>
		</h1>
	</div>
	<!-- /.page-header -->
	<!-- PAGE CONTENT BEGINS -->
	<div class="row">
		<div class="col-xs-12">
			<div class="row">
				<div class="tabbable">
					<ul class="nav nav-tabs" id="myTab">
						<li class="active">
							<a href="{:U('Admin/Role/index')}">
								<i class="green icon-home bigger-110"></i>
								角色列表
							</a>
						</li>

						<li>
							<a href="{:U('Admin/Role/add')}">
								<i class="green icon-edit bigger-110"></i>
								添加角色
							</a>
						</li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane in active">
							<div class="table-responsive">
								<div id="sample-table_wrapper" class="dataTables_wrapper" role="grid">
								<table aria-describedby="sample-table_info" id="sample-table" class="table table-striped table-bordered table-hover dataTable">
									<thead>
									<tr role="row">
									<th aria-label="ID: activate to sort column ascending" colspan="1" rowspan="1" aria-controls="sample-table" tabindex="0" role="columnheader" class="center sorting_asc">ID</th>
									<th aria-label="角色名" colspan="1" rowspan="1" role="columnheader" class="sorting_disabled">角色名</th>
									<th aria-label="角色昵称" colspan="1" rowspan="1" role="columnheader" class="sorting_disabled">角色昵称</th>
									<th aria-label="状态: activate to sort column ascending" style="width: 20%;" colspan="1" rowspan="1" aria-controls="sample-table" tabindex="0" role="columnheader" class="center sorting">状态</th>
									<th aria-label="操作" style="width: 20%;" colspan="1" rowspan="1" role="columnheader" class="sorting_disabled center">操作</th></tr>
									</thead>
								<tbody aria-relevant="all" aria-live="polite" role="alert">
								<foreach name="list" item="l">
								<tr class="odd">
								<td class="center sorting_1">{$l.rid}</td>
								<td class="">{$l.rname}</td>
								<td class="">{$l.rnick}</td>
								<td class="center">
									<span class="label label-sm label-success arrowed arrowed-righ">
									 <if condition="$l[rstatus] eq 1">启用
											<else />禁用
										</if>
									</span>
								</td>
								<td class="center">
								<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
									<a class="green" href="{:U('Admin/Role/edit',array('id'=>$l['rid']))}" title="修改">
										<i class="icon-pencil bigger-130"></i>
									</a>
								<a class="red del" href="{:U('Admin/Role/del',array('id'=>$l['rid']))}" title="删除" onclick="return confirmAct();">
								<i class="icon-trash bigger-130"></i>
								</a>
							</div>
								</td>
								</foreach>
								</tbody>
								</table>
								<div class="row">
									<div class="col-sm-6">
										<div class="dataTables_info" id="sample-table_info">共 {$count} 条记录</div>
									</div>
									<div class="col-sm-6">
										<div class="dataTables_paginate paging_bootstrap">{$page}</div>
									</div>
								</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- PAGE CONTENT END -->
</div>
</div>
</div>
<script type="text/javascript" language="javascript">
<!--
function confirmAct()
{
    if(confirm('确定要删除吗?'))
    {
        return true;
    }
    return false;
}
//-->
</script>
<include file="Public/footer"/>
